<template>
  <div>

    <mt-header title="招聘信息" style="background-color: #ee9900">
      <div slot="left" title="招聘信息">
        <!--<mt-button icon="back" @click="back">返回</mt-button>-->
      </div>
    </mt-header>

    <h3 style="padding: 3%">|招聘信息 </h3>

    <mt-field label="招聘单位" placeholder="请输入招聘单位" v-model="company"></mt-field>
    <mt-field label="招聘单位" placeholder="请输入单位信息" v-model="information"></mt-field>
    <mt-field label="招聘岗位" placeholder="请输入招聘岗位" v-model="position"></mt-field>
    <mt-field label="学历要求" placeholder="请输入学历要求" v-model="degreeLimit"></mt-field>
    <mt-field label="岗位职责" placeholder="请输入岗位职责" v-model="duty"></mt-field>
    <mt-field label="岗位要求" placeholder="请输入岗位要求" v-model="requirements"></mt-field>
    <mt-field label="工作经验" placeholder="请输入工作经验" v-model="workExperience"></mt-field>
    <mt-field label="工作地点" placeholder="请输入工作地点" v-model="workPlace"></mt-field>
    <mt-field label="薪资待遇" placeholder="请输入薪资待遇" v-model="salary"></mt-field>
    <mt-field label="福利待遇" placeholder="请输入福利待遇" v-model="socialBenefits"></mt-field>
    <mt-field label="招聘人数" placeholder="请输入招聘人数" v-model="absorbAmount"></mt-field>
    <mt-field label="发布日期"  type="date" v-model="issueTime"></mt-field>

    <div>
      <mt-button type="primary" size="large"
                 @click.native="handleClick" style="text-align: center">提交
      </mt-button>
    </div>

  </div>
    
</template>

<script>
  import * as mint from 'mint-ui'
  import { postAction } from '@/api/manage'
  import { MessageBox } from 'mint-ui'

  export default {
    name: 'onlineRecruitmentAbsorb1',
    components: {
      ...mint
    },

    methods:{
      handleClick: function() {

        const parameter = {
          company:this.company,
          information:this.information,
          position:this.position,
          degreeLimit:this.degreeLimit,
          duty:this.duty,
          requirements:this.requirements,
          workExperience:this.workExperience,
          workPlace:this.workPlace,
          salary:this.salary,
          socialBenefits:this.socialBenefits,
          absorbAmount:this.absorbAmount,
          issueTime:this.issueTime
        }

        postAction('/recruitment/recruitmentAbsorb/add', parameter).then((res) => {
          if (res.success) {
            MessageBox('提示', res.message);
            this.$router.push({ name: "phone-index" })
          } else {
            MessageBox('提示', '操作失败!!!')
          }
        })
      }
    }
  }
</script>
.ant-list-item-content {
display: block;
}
<style scoped>

</style>